<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>JasperreportTest.jsp</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script lanuage=javascript>
		function showHTML(){
			window.open("<%=path%>/showJasperreport.do?format=html",null,null,null);
		}
		
		function showExcel(){
			window.open("<%=path%>/showJasperreport.do?format=excel",null,null,null);
		}
		
		function showPDF(){
			window.open("<%=path%>/showJasperreport.do?format=PDF",null,null,null);
		}
	</script>
  </head>
  
  <body>
    <input type="button" value="showHTML" onclick="showHTML();"><br>
    <input type="button" value="showExcel" onclick="showExcel();"><br>
    <input type="button" value="showPDF" onclick="showPDF();"><br>
  </body>
</html>
